﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Utilities
{
    public partial class ErrorDisplay : Form
    {
        public ErrorDisplay()
        {
            InitializeComponent();
        }
        public void errorMessages(string errorMessages)
        {
            this.errorText.Text = errorMessages;
        }
        private void exitButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void copyButton_Click(object sender, EventArgs e)
        {
            string temp = this.Text + "\r\n" + this.errorLabel.Tag + "\r\n" + this.errorText.Text;
            Clipboard.SetDataObject(temp, true);
            this.exitButton.Focus();
        }
    }
}
